package com.longge;

public class CategorizeBox {

    public String categorizeBox(int length, int width, int height, int mass) {


        long v = (long) length * width * height;
        double maxV = Math.pow(10, 9);
        double maxL = Math.pow(10, 4);
        boolean isBulky = false;
        boolean isHeavy = false;
        if (v >= maxV || length >= maxL || width >= maxL || height >= maxL) {
            isBulky = true;
        }

        if (mass >= 100) {
            isHeavy = true;
        }

        if (isBulky && isHeavy) {
            return "Both";
        } else if (!isBulky && isHeavy) {
            return "Heavy";
        } else if (isBulky && !isHeavy) {
            return "Bulky";
        } else {
            return "Neither";
        }
    }

    public static void main(String[] args) {
        new CategorizeBox().categorizeBox(1000,35,700,300);
    }

}
